@extends('admin.main')
@section('head')
    <script src="/static/citys/jquery.citys.js" type="text/javascript"></script>
@endsection
@section('body')
    <div class="main-title">
        <h2>{{isset($info['username']) && $info['username'] ? '编辑':'新增'}}账号</h2>
    </div>
    <div class="tab-wrap">
        <div class="tab-content">
            <form action="" method="post" class="form-horizontal">
                <!-- 基础 -->
                <div id="tab1" class="tab-pane in tab1">
                    <div class="form-item">
                        <label class="item-label">
                            店铺名称
                        </label>
                        <div class="controls">
                            {{$info['shop_name']}}
                        </div>
                    </div>
                    <div class="form-item">
                        <label class="item-label">
                            用户名<span class="check-tips">（必填）</span>
                        </label>
                        <div class="controls">
                            <input type="text" name="username" class="text input-large" placeholder="" @if(isset($info['username']) && $info['username'])readonly="readonly"@endif
                                   value="{{isset($info['username']) ? $info['username'] : ''}}">
                        </div>
                    </div>
                    @if(isset($info['password']) && $info['password'])
                    <div class="form-item">
                        <label class="item-label">
                            原密码<span class="check-tips">（必填）</span>
                        </label>
                        <div class="controls">
                            <input type="password" name="old_password" class="text input-large"
                                   value="">
                        </div>
                    </div>
                    @endif
                    <div class="form-item">
                        <label class="item-label">
                            密码<span class="check-tips">（必填）</span>
                        </label>
                        <div class="controls">
                            <input type="password" name="password" class="text input-large"
                                   value="">
                        </div>
                    </div>
                    <div class="form-item">
                        <label class="item-label">
                            确认密码<span class="check-tips">（必填）</span>
                        </label>
                        <div class="controls">
                            <input type="password" name="confirm_password" class="text input-large"
                                   value="">
                        </div>
                    </div>

                    <!-- 高级 -->
                    <div class="form-item">
                        <input type="hidden" name="id" value="{{isset($info['id']) ? $info['id'] : ''}}">
                        <button type="submit" id="submit" class="btn submit-btn ajax-post"
                                target-form="form-horizontal">确 定
                        </button>
                        <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
                    </div>
            </form>
        </div>
    </div>
@endsection

@section('script')

@endsection
